<?php
class My_Acl extends Zend_Acl
{
    public function  __construct()
    {
        // roles
        $this->addRole(new Zend_Acl_Role('visitor'));
        $this->addRole(new Zend_Acl_Role('user'));

        // recursos
        $this->addResource(new Zend_Acl_Resource('admin'));
        $this->addResource(new Zend_Acl_Resource('default'));
        $this->addResource(new Zend_Acl_Resource('developer'));
        $this->addResource(new Zend_Acl_Resource('desktop'));
        
        // control
        $this->allow('user', array('default', 'admin', 'developer'));
        $this->allow('visitor', array('default'));
    }
}